<?php

class ParamsTransfer {

    function __construct() {
        
    }

    function set_value($name, $value) {
        $this->{$name} = $value;
    }

    function display($view) { 
        $params = $this;
        $messages = $params->messages;
        recursive_requires(APP_PATH . 'helpers');
        require(CORE_PATH . 'base_mvc' . DS . 'helpers.php');
        ob_start();
        include($view);
        $contents = ob_get_contents();
        ob_end_clean();
        unset($view);

        $this->set_value('content', $contents);
        unset($content);
        
        include_once VIEW_PATH . 'layout' . DS . DEFAULT_LAYOUT . DS . 'layout.php';
      }
}

?>
